<template>
    <div class="container">
        <Category title="美食" :listData="foods">
            <img  slot="center" src="./asseets/烧烤.jpg">
            <a href="https://www.baidu.com" slot="footer">查看更多</a>
        </Category>
        <Category title="游戏" :listData="gamees">
            <div slot="footer" class="foot"> 
                <a href="https://www.baidu.com">单机游戏</a>
                <a href="https://www.baidu.com">网络游戏</a>
            </div>
            
        </Category>
        <Category title="电影" :listData="films">
            <video src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" controls></video>
            <template v-slot:footer>
                <div >
                    <a href="https://www.baidu.com">经典</a>
                    <a href="https://www.baidu.com">热门</a>
                    <a href="https://www.baidu.com">推荐</a>
                </div>
                <h4>欢迎前来观影</h4>
            </template>
        </Category>
    </div>
  
</template>

<script>
    import Category from './components/Category'
    export default {
        name: 'App',
        data() {
            return {
              foods:['火锅','烧烤','小龙虾','牛排'],
              gamees:['红色警戒','穿越火线','劲舞团','超级玛丽'],
              films:['《盗梦空间》','《战狼2》','《蜘蛛侠：英雄归来》','《复仇者联盟4》']
            }
        },
        methods: {
            
        },
        components: {
            Category
        },
        methods:{
        }
    }
</script>

<style>
    .container {
        display: flex;
        justify-content: space-around;
    }
    h4{
        text-align: center;
    }
</style>